html {
  font-size: 4px; // * 1rem = 4px  方便unocss计算：在unocss中 1字体单位 = 0.25rem，相当于 1等份 = 1px
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #f2f2f2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* router view transition fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
  transition: all 0.2s;
}

.fade-slide-enter-from {
  opacity: 0;
  transform: translateX(-30px);
}

.fade-slide-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

/* 左侧菜单样式 */
.app-sidebar-box {
  position: relative;
  overflow: visible;
  .n-scrollbar {
    overflow: visible;
  }
  .collapse-aside-line {
    position: absolute;
    z-index: 10;
    right: -10px;
    top: calc(50% - 40px);
    width: 6px;
    height: 80px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: rgba(106, 106, 106, 0.3);
    transition: 0.2s all;
    border-radius: 25px;
    &:hover {
      height: 100px;
      top: calc(50% - 50px);
      background: rgba(106, 106, 106, 0.8);
    }
  }
  .n-menu {
    padding: 0 6px;
    .n-menu-item-content {
      overflow: hidden;
      &:before {
        left: 0;
        right: 0;
        border-radius: 0;
      }
      &:hover {
        transition: all 0.1s ease-in-out;
        background-color: #919EAB14;
      }
      .n-menu-item-content__icon{
        color: rgb(99, 115, 129);
      }
      &.n-menu-item-content--selected {
        .n-menu-item-content__icon{
          color: $primaryColor;
        }
        font-weight: bold;
        &:before {
          background: linear-gradient(90deg, rgba($primaryColor, 0.3) 0%, rgba($primaryColor, 0.3) 100%);
        }
      }
    }

    .n-menu-item-content-header {
      font-size: 14px;
      color: rgb(99, 115, 129);
    }

    .n-submenu-children {
      padding: 0 6px 6px 6px;
      ::v-deep(.n-menu-item-content-header) {
        font-size: 14px;
        font-weight: normal;
        position: relative;
        overflow: visible;
      }
    }
  }
}

/* header样式 */
.app-header-box {
  position: relative;
  overflow: visible;
  transition: 0.2s all;
  .collapse-header-line {
    position: absolute;
    z-index: 10;
    bottom: -10px;
    left: calc(50% - 40px);
    width: 80px;
    height: 6px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: rgba(106, 106, 106, 0.3);
    transition: 0.2s all;
    border-radius: 25px;
    &:hover {
      width: 100px;
      left: calc(50% - 50px);
      background: rgba(106, 106, 106, 0.8);
    }
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  background-color: #eee;
}

::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;

  &:hover {
    background-color: #a8a8a8;
  }
}


